<!DOCTYPE >
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>banner</title>
<css  href="__PUBLIC__/system/css/right.css" />
<js href="__PUBLIC__/system/js/jquery.js" />
<js href="__PUBLIC__/system/js/admin.js" />
<js href="__PUBLIC__/system/js/ajaxfileupload.js" />
</head>
<body style="overflow: auto;">
	<div class="basic bor">
			<div class="title fl">当前位置：banner管理</div>
			<div class="basic_r fr"><a href="{:U('index/setting')}">基本信息</a></div>
	</div>
	
	<div class="addbanner"><span><a href="{:U('Banner/addbanner',array('isMobile'=>1))}">添加</a></span></div>


<volist name="list" id="li">
	<!-- one -->
	<div class="banner_mian">
		<a href="{:U('Banner/delbanner',array('id'=>$li[id]))}"><div class="delbanner"><i title="删除轮播" onclick="return confirm('确定将此记录删除?')">X</i></div></a>
		<!-- left -->
			<div class="banner_l fl">
				<ul>
					<li>
						<dd class="fl title">广告标题：</dd>
						<dd class="fl">
							<input type="text" name="title" onchange='onid("{$li.id}","title","store_banner")' title_id="{$li.id}" value="{$li.title}">

						</dd>
					</li>

					<div class="clear"></div>
					<li>
						<dd class="fl title">图片上传：</dd>
						<dd class="fl line" >
							<div class="infx">
							  <input  class="id_photos" num_sql="store_banner"  data-id ='{$li.id}' type="file"  id="id_photos_{$li.id}"  value="上传文件"  name="pic" >
							  <span class="text_s">上传文件</span>
							</div>
						</dd>
					</li>
					<div class="clear"></div>
					<li>
						<dd class="fl title">连接网址：</dd>
						<dd class="fl">
							<input type="text" onchange='onid("{$li.id}","url","store_banner")' url_id="{$li.id}"  name="url" value="{$li.url}" >
						</dd>
					</li>

					<div class="clear"></div>
					<li>
						<dd class="fl title">播放顺序：</dd>
						<dd class="fl">
							<input type="text"  onchange='onid("{$li.id}","sort","store_banner")' sort_id="{$li.id}"  class="width90" name="sort" value="{$li.sort}">
						</dd>
					</li>
					
					<div class="clear"></div>
					<li>
						<dd class="fl title">是否弹窗：</dd>
						<dd class="fl">
							<input class="tanurl fl" onclick='onid("{$li.id}","fruit","store_banner")' fruit_id="{$li.id}" name="fruit"  
							<if condition="($li['fruit']) eq 1 ">checked="checked" </if> type="checkbox" value="{$li.fruit}" />
							<span class="fl">是/否</span>
						</dd>
					</li>

					<div class="clear"></div>
				</ul>

			</div>

		<!-- /left -->
		<!-- right -->
		<div class="fl banner_r">
			<div><img id ="pic_{$li.id}" src="{$li.pic}" width="200px" height = "100px"></div>
			<p class="ts"><span class="colorf00">*</span><span class="ts_text"> 注意事项:请上传500KB以内的JPG图片,否则无法正常轮播。</span></p>
		
		</div>
		<!-- /right -->
	</div>
	<!-- one -->
</volist> 
</body>
</html>